package cn.lg.soar.generator.model;

import cn.lg.soar.generator.enums.TemplateEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.File;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Getter
@Setter
public class GenConfig {

    @ApiModelProperty(value = "主键")
    private String pkName;

    @ApiModelProperty(value = "作者")
    private String author = System.getProperty("user.name");

    @ApiModelProperty(value = "模板")
    private TemplateEnum template;

    @ApiModelProperty(value = "表前缀")
    private String tablePrefix;

    @ApiModelProperty(value = "表名", required = true)
    private String tableName;

    @ApiModelProperty("描述")
    private String comment;

    @ApiModelProperty("模型名称")
    private String modelName;

    @ApiModelProperty("接口路径")
    private String apiPath;

    @ApiModelProperty("输出目录")
    private String outputDir;

    @ApiModelProperty(value = "java代码配置")
    private JavaConfig javaConfig;

    @ApiModelProperty(value = "web代码配置")
    private WebConfig webConfig;

    @ApiModelProperty(value = "路径分隔符")
    private String fileSeparator = File.separator;

}
